package com.my.db.test.mybatis.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author timo 2021/3/25
 */
public class EnumConstants {
    @Getter
    @AllArgsConstructor
    public enum StatusEnum {
        VALID(1, "有效"),
        INVALID(0, "无效");
        @EnumValue
        private final Integer value;
        @JsonValue
        private final String desc;
    }

}
